{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "b79a5cc1",
   "metadata": {},
   "source": [
    "# 金融市场基础第6节课书面作业\n",
    "学号：114847\n",
    "\n",
    "**作业内容：**  \n",
    "某时刻某公司股价为28美元，A认为微软股价将上升，因此以0.75美元的期权费向B购买了一份1年后到期、行权价格为30美元的此公司股票看涨期权，一份期权包含100份股票的买卖，而一份标准的期权交易包含了100份相同的期权：\n",
    "1. 如果到期后，此公司股价为24美元，A的收益是多少？\n",
    "2. 如果到期后，此公司股价为32美元，A的收益是多少？\n",
    "3. 如果合约持有半年，发现公司股价为40美元，市场利率6%，这份期权合约对A来说价值多少？（连续利率）"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d914652a",
   "metadata": {},
   "source": [
    "**答：**  "
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a7265631",
   "metadata": {},
   "source": [
    "1. **如果到期后，此公司股价为24美元，A的收益是多少？**  \n",
    "  到期后价格低于行权价格，选择不行权，A的收益就是损失期权费：$-0.75 \\times 100 = -75\\$$  \n",
    "2. **如果到期后，此公司股价为32美元，A的收益是多少？**  \n",
    "  到期后价格高于行权价格，选择行权，A的收益：$(32-30)\\times 100 - 0.75 \\times 100=125\\$$  \n",
    "3. **如果合约持有半年，发现公司股价为40美元，市场利率6%，这份期权合约对A来说价值多少？（连续利率）**  \n",
    "  $$\n",
    "  S_0 = 40\\times 100=4000 \\\\\n",
    "  X = 30\\times 100 =3000  \\\\\n",
    "  value = max(0,S_0-Xe^{-rT})=4000-3000e^{-0.06\\times 0.5}=1088.66\\$\n",
    "  $$"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e377d630",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
